import { request, config } from 'utils'

const { api } = config
const { dashboard, recipeLogsUrl, getUserInfoUrl, beanOverviewUrl } = api

export async function query(params) {
  return request({
    url: dashboard,
    method: 'post',
    data: params,
  })
}
export async function getBeanOverview(params) {
  return request({
    url: beanOverviewUrl,
    method: 'post',
    data: params,
  })
}
export async function queryRecipeLogs(params) {
  return request({
    url: recipeLogsUrl,
    method: 'post',
    data: params,
  })
}
export async function getUserInfo(params) {
  return request({
    url: getUserInfoUrl,
    method: 'GET',
    data: params,
  })
}
